package backend.project.gym_management.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class UserRegisterParam {
    @NotBlank
    @Size(min = 5, max = 20)
    @ApiModelProperty(value = "账户名", required = true, example = "user1")
    private String account;

    @Size(min = 8)
    @ApiModelProperty(value = "密码", required = true, example = "88888888")
    private String password;

    @NotBlank
    @Size(max = 50)
    @ApiModelProperty(value = "姓名", required = true, example = "猫振")
    private String username;

    @ApiModelProperty(value = "性别", required = true, example = "M")
    private Character gender;

    @ApiModelProperty(value = "年龄", required = true, example = "18")
    private Integer age;
}